﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebSite.Master" AutoEventWireup="true"
    CodeBehind="ChangeInfo.aspx.cs" Inherits="RN.ERP.Web.EnterpriseChange.ChangeInfo" %>

<%@ Register Src="~/UserControl/UCEnterpriseChange.ascx" TagName="ucEnterpriseChange"
    TagPrefix="ucEnterpriseChange" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="../Scripts/ligerUI/js/ligerui.min.js"></script>
    <style type="text/css">
        .style1
        {
            height: 33px;
            line-height: 33px;
            font-size: 14px;
            font-weight: bold;
            color: #fff;
            background: url('../images/xx_m.jpg') repeat-x;
            width: 19px;
        }
        .style2
        {
            background: url('../images/l_conlibg.jpg') repeat-y;
            width: 19px;
        }
        .style3
        {
            background: url('../images/con_m.jpg') repeat-x;
            width: 19px;
        }
        #corpName
        {
            color: Blue;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $("#corpName").click(function () {
                var corpUserGuid = $("#ContentPlaceHolder1_hdnCorpUserGuid").val();
                $.ligerDialog.open({ url: "../Enterprise/EnterpriseCorpInfo.aspx?corpUserGuid=" + corpUserGuid, width: 1180, height: 800, title: '', buttons: [{ text: '关闭', onclick: function (item, dialog) { dialog.close(); } }] });
                //  window.location.href = '../Enterprise/EnterpriseCorpInfo.aspx?corpUserGuid=' + guid;
            }
            );
        }
    );
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed;border-collapse: collapse;padding: 0">
        <tr>
            <td class="xx_m  tt_xx_l"></td>
            <td class="xx_m  tt_xx_icon"></td>
            <td style="width:auto;" class="xx_m">企业变更明细</td>
            <td style="width:14px;"><img src="../images/xx_r.jpg" width="14" height="33" /></td>
        </tr>
        <tr>
            <td class="style2">
            </td>
            <td colspan="2" style="padding-top: 10px; padding-left: 6px;">
                <div>
                    <div class="xian">
                        <div class="about_title">
                            企业基本信息
                        </div>
                    </div>
                    <div>
                        企业名称：<a href="javascript:void(0)" id="corpName"><asp:Literal ID="ltrCorpName" runat="server"></asp:Literal></a>
                    </div>
                </div>
                <div>
                    <div class="xian">
                        <div class="about_title">
                            企业变更记录
                        </div>
                    </div>
                    <div>
                        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
                            <AjaxSettings>
                                <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                                    <UpdatedControls>
                                        <telerik:AjaxUpdatedControl ControlID="ListCorpChange" LoadingPanelID="RadAjaxLoadingPanel1" />
                                    </UpdatedControls>
                                </telerik:AjaxSetting>
                            </AjaxSettings>
                        </telerik:RadAjaxManager>
                        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
                        <telerik:RadGrid ID="ListCorpChange" runat="server" AutoGenerateColumns="False" CellSpacing="0"
                            Width="100%" Culture="zh-CN" GridLines="None" AllowFilteringByColumn="false"
                            AllowPaging="true" AllowCustomPaging="true" AllowMultiRowSelection="true" OnNeedDataSource="ListCorpChange_NeedDataSource"
                            AllowSorting="false" ShowStatusBar="true">
                            <ClientSettings ReorderColumnsOnClient="True" AllowColumnsReorder="True" EnableRowHoverStyle="true">
                                <Resizing AllowRowResize="True" EnableRealTimeResize="True" ResizeGridOnColumnResize="True"
                                    AllowColumnResize="True"></Resizing>
                            </ClientSettings>
                            <MasterTableView AutoGenerateColumns="false" >
                                <CommandItemSettings ExportToPdfText="导出PDF" />
                                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                                </RowIndicatorColumn>
                                <Columns>
                                    <telerik:GridTemplateColumn HeaderText="序号" HeaderStyle-Width="50px">
                                        <ItemTemplate>
                                        <%# Container.DataSetIndex+1 %>
                                        </ItemTemplate>
                                        <ItemStyle Width="50px"></ItemStyle>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn  HeaderText="变更名称">
                                        <ItemTemplate>
                                            <a href="ChangeDetailInfo.aspx?setId=<%#Eval("ChangeSetId") %>&objectName=<%#Eval("ObjectName") %>&corpUserGuid=<%#Eval("ObjectId")%>&verifyFunType=2&functionType=2&flowcode=<%#GetFlowCodeTitle(Eval("Flowcode"))%>">
                                                <%# Eval("ObjectName")%></a>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn  HeaderText="变更情况说明" ItemStyle-Width="100px">
                                        <ItemTemplate>
                                            <%#Eval("isrtusername")%>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridBoundColumn DataField="IsrtDate" HeaderText="申请时间" HeaderStyle-Width="70px"
                                        DataFormatString="{0:yyyy-MM-dd}">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridTemplateColumn DataField="DetailName" HeaderText="审核状态" HeaderStyle-Width="200px">
                                        <ItemTemplate>
                                            <%#GetFlowCodeTitle( Eval("Flowcode"))%>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="审核意见" HeaderStyle-Width="200px">
                                        <ItemTemplate>
                                            <%# Eval("Description")%>
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                            </MasterTableView>
                            <ClientSettings EnableRowHoverStyle="true">
                                <Selecting AllowRowSelect="True"></Selecting>
                            </ClientSettings>
                            <PagerStyle AlwaysVisible="True" />
                            <FilterMenu EnableImageSprites="False">
                            </FilterMenu>
                        </telerik:RadGrid>
                    </div>
                </div>
                <div>
                    <div class="xian">
                        <div class="about_title">
                            新增变更
                        </div>
                    </div>
                    <div>
                        <ucEnterpriseChange:ucEnterpriseChange ID="ucEnterpriseChange" ChangeType="Corp"
                            FunctionType="Add" runat="server" />
                    </div>
                </div>
            </td>
            <td class="right_con">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style3">
                <img src="../images/left_bottom.jpg" width="19" height="24" alt="" />
            </td>
            <td colspan="2" class="con_m">
                &nbsp;
            </td>
            <td>
                <img src="../images/right_bottom.jpg" width="14" height="24" alt="" />
            </td>
        </tr>
    </table>
    <asp:HiddenField ID="hdnCorpUserGuid" runat="server" />
</asp:Content>
